package com.xingkeduo.business.operation.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.xingkeduo.dao.database.DatabaseAccessObject;
import com.xingkeduo.pojo.query.SystemConfigQuery;
import com.xingkeduo.pojo.table.SystemConfigTable;
import com.xingkeduo.util.tool.CommonUtil;

/**
 * 
 * 类说明  配置信息表
 * @author: pantong E-mail:pantong@xingkeduo.com
 * @date: 2019年6月25日 下午8:29:04
 */
@Component
public class SystemConfigService {
    private static final String NAMESPACE = SystemConfigTable.class.getSimpleName();

    @Resource(name = "mysqlOperationDao")
    private DatabaseAccessObject<SystemConfigTable, SystemConfigQuery> dao;
    

    //查询多条
    public List<SystemConfigTable> selectLists(SystemConfigQuery systemConfigQuery) throws Throwable {
        List<SystemConfigTable> systemConfigList = dao.select(NAMESPACE, systemConfigQuery);
        if (!CommonUtil.isEmpty(systemConfigList))
            return systemConfigList;
        return null;
    }

    
   
}
